package cn.seventhquestion;

public class Car extends Vehicle{
    private int loader;


    public Car(){

    }

    public Car(int wheels, int weight, int loader) {
        super(wheels, weight);
        this.loader = loader;
    }

    public int getLoader() {
        return loader;
    }

    public void setLoader(int loader) {
        this.loader = loader;
    }

    public String show(){
        String str=super.show();
        StringBuffer s = new StringBuffer(str);
        s.append("，它可以带"+loader+"个人");

        return String.valueOf(s);
    }
}
